import { Route } from "react-router";
import Home from "../views/Home";
import msg_code_tester from "@functions/test/msg-code-tester";

// 本地路由配置表
const routes = [
  { path: "/home", component: Home }
  ,{ path: "/test/msg-code-tester", component: msg_code_tester }
];

export default routes;

export const generateRoute = () =>
  routes.map((item) => <Route key={item.path} exact path={item.path} component={item.component} />);
